<?php

namespace module\manage\validate;

use app\Validate;
use app\model\UserDeposit as Model;

/**
 * 验证
 *
 * @author suiyuan
 */
class UserDeposit extends Validate
{
    /**
     * 所有验证场景需要验证的字段.
     *
     * @var array<array>
     */
    protected $scene = [
        'save' => ['aim_id'],
        'del' => ['aim_id'],
    ];
    protected $rule =   [
        'aim_id' => 'require|exists:app\model\User,id|integer', // 目标
    ];
    
    /**
     * 验证字段
     *
     * @var array
     */
    protected $field = [
        'aim_id' => '目标ID', // 目标
        'delete_at' => '删除时间',
        'create_at' => '创建时间',
    ];
}
